package com.song.studylineserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.song.studylineserver.domain.Topic;
import com.song.studylineserver.mapper.TopicMapper;
import com.song.studylineserver.service.TopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Swtao
* @description 针对表【sl_topic】的数据库操作Service实现
* @createDate 2022-01-14 14:22:03
*/
@Service
public class TopicServiceImpl extends ServiceImpl<TopicMapper, Topic>
implements TopicService {
    @Autowired
    TopicMapper topicMapper;
    @Override
    public Topic selectTopicByTopicId(String topicId) {
        return topicMapper.selectTopicByTopicId(topicId);
    }

    @Override
    public List<Topic> searchAllByTopicAuthor(Long AuthorId) {
      return   topicMapper.searchAllByTopicAuthor(AuthorId);
    }

    @Override
    public List<String> searchAllType() {
        return topicMapper.searchAllType();
    }


    @Override
    public Object selectAll() {
       return  topicMapper.selectAll();
    }


}
